/*访问后台的代码*/
layui.define([], function (exports) {
    var api = {
        update: function (form, callback) {
            Lib.submitForm("/cms/preparatoryTalent/update.json", form, {}, callback)
        },
        addPreparatoryTalent:function(form,callback){
            Lib.submitForm("/cms/preparatoryTalent/add.json?judge=add",form,{},callback)
        },
        savedeclaration: function (form, callback) {
            Lib.submitForm("/cms/preparatoryTalent/add.json?judge=declare", form, {}, callback)
        },
        editandsave:function(form,callback){
            Lib.submitForm("/cms/preparatoryTalent/update.json?judge=add",form,{},callback)
        },
        editorialapplication:function(form,callback){
            Lib.submitForm("/cms/preparatoryTalent/update.json?judge=declare",form,{},callback)
        },
        AcceptanceOK: function (form, callback) {//受理通过
            Lib.submitForm("/cms/preparatoryTalent/AcceptanceOK.json", form, {}, callback)
        },
        FirstTrial: function (form, callback) {//初审通过
            Lib.submitForm("/cms/preparatoryTalent/FirstTrial.json", form, {}, callback)
        },
        ReviewThrough: function (form, callback) {//复审通过
            Lib.submitForm("/cms/preparatoryTalent/ReviewThrough.json", form, {}, callback)
        },
        AdmissibleReturn: function (form, callback) {//受理退回
            Lib.submitForm("/cms/preparatoryTalent/AdmissibleReturn.json", form, {}, callback)
        },
        initialReview: function (form, callback) {//初审退回
            Lib.submitForm("/cms/preparatoryTalent/initialReview.json", form, {}, callback)
        },
        Reexamination: function (form, callback) {//复审退回
            Lib.submitForm("/cms/preparatoryTalent/Reexamination.json", form, {}, callback)
        },
        Admissibility: function (form, callback) {//受理终止
            Lib.submitForm("/cms/preparatoryTalent/Admissibility.json", form, {}, callback)
        },
        FirstTrialTermination: function (form, callback) {//初审终止
            Lib.submitForm("/cms/preparatoryTalent/FirstTrialTermination.json", form, {}, callback)
        },
        RetrialTermination: function (form, callback) {//复审终止
            Lib.submitForm("/cms/preparatoryTalent/RetrialTermination.json", form, {}, callback)
        },
        del: function (ids, callback) {
            Common.post("/cms/preparatoryTalent/delete.json", {"ids": ids}, function () {
                callback();
            })
        }

    };
    exports('preparatoryTalentApi', api);
});